#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#define TABSIZE(array)  (sizeof(array)/sizeof(array[0]))

void print_backward(int pos, char *buf)
{
    if (pos == strlen(buf))
        return;
    print_backward(pos+1, buf);
    putchar(buf[pos]);
    return;
}

int main(int argc, char **argv)
{
    if (argc < 2) {
        fprintf(stderr, "Usage: %s <string>\n", argv[0]);
        exit(EXIT_FAILURE);
    }
    print_backward(0, argv[1]);
    putchar('\n');

    return 0;
}

